package per.yhh.xxxtsj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import per.yhh.xxxtsj.entity.Good;
import per.yhh.xxxtsj.entity.Myorder;
import per.yhh.xxxtsj.entity.PageResult;
import per.yhh.xxxtsj.entity.User;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yhh
 * @since 2022-04-17
 */
public interface MyorderService extends IService<Myorder> {


    Myorder buy(User user, Good good);

    PageResult<Myorder> getOrderByPageAndKeyAndId(Long uid, String keyword, Integer pageNum, Integer pageSize);

    PageResult<Myorder> getOrderByPage(String keyword, Integer pageNum, Integer pageSize);
}
